﻿using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Web.Models
{
    public class CookieNames
    {
        public const string token = "token_";
    }

    public static class Cookies
    {

        public static void Set(this IResponseCookies cookies, string key, object obj)
        {
            cookies.Append(key, obj.ToString(), new CookieOptions
            {
                //作用域
            });
        }
    }
}
